﻿namespace Digitalmes.Domain.Entities.Sys;

/// <summary>
/// 用户角色关联关系表
/// </summary>
[SugarTable("sys_user_role")]
public sealed class SysUserRole : EntityBase
{
    /// <summary>
    /// 用户Id
    /// </summary>
    public long UserId { get; set; }

    /// <summary>
    /// 角色Id
    /// </summary>
    public long RoleId { get; set; }

    /// <summary>
    /// 角色
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(RoleId))]
    public SysRole? Role { get; set; }
}
